package com.minstone.common.boss.information.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.minstone.common.boss.authority.dao.ServiceAuthDao;
import com.minstone.common.boss.information.bean.BasicInformationBean;
import com.minstone.common.boss.information.dao.BasicInformationDao;
import com.minstone.common.boss.information.service.IBasicInformationService;

@Service
public class BasicInformationServiceImpl implements IBasicInformationService{
	
	@Autowired
	private BasicInformationDao basicInformationDao;
	
	@Autowired
	private ServiceAuthDao serviceAuthDao;

	@Override
	public BasicInformationBean findBasicInfomationByApiUrl(String api) {
		List<BasicInformationBean> lists = this.basicInformationDao.findBasicInfomationByApiUrl(api);
		if(lists!=null && lists.size()>0){
			return lists.get(0);
		}
		return null;
	}

}
